package cn.iocoder.yudao.module.member.alliance.job;

import cn.iocoder.yudao.framework.quartz.core.handler.JobHandler;
import cn.iocoder.yudao.framework.tenant.core.job.TenantJob;
import cn.iocoder.yudao.module.member.alliance.service.AppCloudAllianceUserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

/**
 * 云盟商过期 Job
 *
 * @author 山野羡民
 */
@Component
public class CloudAllianceUserExpireJob implements JobHandler {

    @Resource
    private AppCloudAllianceUserService appCloudAllianceUserService;

    @Override
    @TenantJob
    public String execute(String param) {
        int count = appCloudAllianceUserService.cloudAllianceUserExpireBySystem();
        return String.format("云盟商过期 %s 个", count);
    }

}
